package com.zbf.web;

import com.zbf.config.GetConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * 作者: LCG
 * 日期: 2021/6/25  16:15
 * 描述: 
 * @Param 
 * @Return 
 */
@RestController
public class ServerAController {

    @Autowired
    private GetConfig getConfig;

    @RequestMapping("test10")
    public Map<String,String> test10(){

        Map<String,String> mm=new HashMap<String, String>();
        mm.put("username",getConfig.getUsername());
        mm.put("password",getConfig.getPassword());

        return mm;
    }

}
